.Net Framework > v3.5.21022.8 > System > Linq > Queryable > DefaultIfEmpty<TSource> DefaultIfEmpty<TSource>(IQueryable<TSource>)
DefaultIfEmpty<TSource>(IQueryable<TSource>,TSource)


DefaultIfEmpty<TSource>(IQueryable<TSource>)

Category
Method
Description
Returns the elements of the specified sequence or the type parameter's default value in a singleton collection if the sequence is empty.
Type
System.Linq.IQueryable<TSource>
Character
public, static
Parameters
NameTypeDescription
sourceSystem.Linq.IQueryable<TSource>
Attributes
NameValue/Assignment
ExtensionAttribute
Tags
01892ABD01, 02E3ABA98D, 0322962271

DefaultIfEmpty<TSource>(IQueryable<TSource>,TSource)

Category
Method
Description
Returns the elements of the specified sequence or the specified value in a singleton collection if the sequence is empty.
Type
System.Linq.IQueryable<TSource>
Character
public, static
Parameters
NameTypeDescription
sourceSystem.Linq.IQueryable<TSource>
defaultValueTSource
Attributes
NameValue/Assignment
ExtensionAttribute
Tags
01892ABD01, 02E3ABA98D, 0322962271

Software for developers
.Net Components
Delphi Components
Software for Android Developers
More information resources
WinAPI Programmer's Reference
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database